package com.example.xinhuaxin.dao;

import com.example.xinhuaxin.entity.Point;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @description:
 * @author: YancyZhang
 * @time: 2022/6/13 10:13
 */

@Mapper
public interface PointDao {
//    用户新建积分信息
    @Insert("insert into USER_POINT (USER_ID, USER_POINT) values (#{user_id}, #{point})")
    public void newPointInfo(String user_id, int point);
//    获取用户积分信息
    @Select("select * from USER_POINT where USER_ID = #{user_id}")
    public Point getUserPoint(String user_id);
}